﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 测量大师
{
    public partial class 控制网测量页面 : Form
    {
        public 控制网测量页面()
        {
            InitializeComponent();
        }

        private void 控制网测量页面_Load(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            闭合导线.Visible = false;
            两已知点.Visible = true;
            一已知点与一方位角.Visible = true;
        }

        private void 支导线_Click(object sender, EventArgs e)
        {
            支导线 form = new 支导线();
            form.Show();
        }

        private void 两已知点_Click(object sender, EventArgs e)
        {
            闭合导线两已知点 form = new 闭合导线两已知点();
            form.Show();
            闭合导线.Visible = true;
            两已知点.Visible = false;
            一已知点与一方位角.Visible = false;
            
        }

        private void 一已知点与一方位角_Click(object sender, EventArgs e)
        {
            闭合导线一已知点一方位角 form = new 闭合导线一已知点一方位角();
            form.ShowDialog();
            闭合导线.Visible = true;
            两已知点.Visible = false;
            一已知点与一方位角.Visible = false;
        }

        private void 附合导线_Click(object sender, EventArgs e)
        {
            附合导线.Visible = false;
            单定向附合导线.Visible = true;
            双定向附合导线.Visible = true;
            无定向符合导线.Visible = true;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            双定向附合导线 form = new 双定向附合导线();
            form.ShowDialog();
        }

        private void 单定向附合导线_Click(object sender, EventArgs e)
        {
            单定向附合导线 form = new 单定向附合导线();
            form.ShowDialog();
        }

        private void 无定向符合导线_Click(object sender, EventArgs e)
        {
            无定向附合导线 form = new 无定向附合导线();
            form.ShowDialog();
        }

        private void 回到主页ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void 帮助文档ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("..\\..\\..\\帮助文档\\一键平帮助文档.docx");
        }
    }
}
